<% layout("/WEB-INF/view/console/skins/skin_2/layout.html", {}) {
%>
<div class="row">
    <div class="col-md-12">
        <div class="widget-container fluid-height clearfix">
            <div class="widget-content padded clearfix">
                <div class='row'>
                    <div class='col-md-12'>
                        <form name="boTaster_form" id="boTaster_form" class='form-inline'>
                            <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='用户ID'  >用户ID：</label>
 <input  onkeyup='boTasterConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='boBpProxyId' name='boBpProxyId' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='用户真实姓名'  >用户真实...：</label>
 <input  onkeyup='boTasterConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='boTrueName' name='boTrueName' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='用户身份证'  >用户身份...：</label>
 <input  onkeyup='boTasterConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='boIdentifyNum' name='boIdentifyNum' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='申请时间'  >申请时间：</label>
 <input  onkeyup='boTasterConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='boApplyTime' name='boApplyTime' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='审核时间'  >审核时间：</label>
 <input  onkeyup='boTasterConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='boReviewTime' name='boReviewTime' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='状态' >状态：</label>
 <select class="form-control" id="boStatus" name="boStatus">
 <option  value="">请选择...</option>
 	<option  value="1">未审核</option>
 	<option  value="2">通过</option>
 	<option  value="3">未通过</option>
 	<option  value="4">禁止</option>
 </select>
 </div>
 
                        </form>
                    </div>
                </div>
                <div class='row'>
                    <div align="center">
                        <button type='button' class='btn btn-default' id='boTasterQuerySearch'>查询</button>
                        <button type='button' class='btn btn-default' id='boTasterReset'>重置</button>
                    </div>
                </div>
                 <div id="boTasterToolbar" class="btn-group">
                              <button type="button" class="btn btn-default" onclick="consoleOpenWindow('boTaster','${ctxPath}/console/bo_taster/add','新增')">
                                  <i class="glyphicon glyphicon-plus"></i>
                              </button>
                              <button type="button" class="btn btn-default" onclick='boTasterConsoleGrid.delete("boTasterId","${ctxPath}/console/bo_taster/delete");'>
                                  <i class="glyphicon glyphicon-trash"></i>
                              </button>
                 </div>
                     <div class='row'>
                              <div class='col-md-12'>
                                  <table id="boTaster" data-toggle="table"
                                         data-url="${ctxPath}/console/bo_taster/json"
                                         data-pagination="true"
                                         data-query-params="boTasterLoadParam"
                                         method="post"
                                         data-side-pagination="server"
                                         data-show-refresh="true"
                                         data-show-toggle="true"
                                         data-pagination-loop="false"
                                         data-show-columns="true"
                                         data-toolbar="#boTasterToolbar">
                                      <thead>
                                      <tr>
                                           <th data-checkbox="true"></th>
                                            <th data-field='boTasterId' data-visible='false'>ID</th>
  <th data-sortable='true' data-field='boBpProxyId'>用户ID</th>
  <th data-sortable='true' data-field='boTrueName'>用户真实姓名</th>
  <th data-sortable='true' data-field='boIdentifyNum'>用户身份证</th>
  <th data-sortable='true' data-field='boApplyTime' data-formatter="consoleTableDateFormat">申请时间</th>
  <th data-sortable='true' data-field='boReviewTime' data-formatter="consoleTableDateFormat">审核时间</th>
  <th data-field='boStatus' data-sortable='true' data-formatter='boTasterbo_statusFormatter'>状态</th>
  <th data-field='boTasterId' data-formatter='boTasterTableOperate'>操作</th>
 
                                      </tr>
                                      </thead>
                                  </table>
                              </div>
                     </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
     var boTasterConsoleGrid =new consoleGrid({table_id:"boTaster"});
     boTasterConsoleGrid.init();
     function boTasterTableOperate(value){
         return "<button type='button' class='btn btn-xs btn-default command-edit' onclick='consoleOpenWindow(\"boTaster\",\"${ctxPath}/console/bo_taster/edit?id="+value+"\",\"编辑\")'><span class='glyphicon glyphicon-pencil'></span></button> ";
     }
    function boTasterLoadParam(params){
        params.query=boTasterQueryString();
        return params;
    }
     function boTasterQueryString() {
         var objQuery = new Object();
                objQuery.boBpProxyId=$('#boBpProxyId').val()==''?null:$('#boBpProxyId').val(); 
     objQuery.boTrueName=$('#boTrueName').val()==''?null:$('#boTrueName').val(); 
     objQuery.boIdentifyNum=$('#boIdentifyNum').val()==''?null:$('#boIdentifyNum').val(); 
     objQuery.boApplyTime=$('#boApplyTime').val()==''?null:$('#boApplyTime').val(); 
     objQuery.boReviewTime=$('#boReviewTime').val()==''?null:$('#boReviewTime').val(); 
     objQuery.boStatus=$('#boStatus').val()==''?null:$('#boStatus').val(); 
 
         var queryString = JSON.stringify(objQuery);
         return queryString;
     }

     function boTasterbo_statusFormatter(value) 
   { 
       var showValue=''; 
       switch(value+''){
       case '1': 
       showValue = '未审核';
       break;
       case '2': 
       showValue = '通过';
       break;
       case '3': 
       showValue = '未通过';
       break;
       case '4': 
       showValue = '禁止';
       break;
       }
    if(showValue.indexOf('不')!=-1||showValue.indexOf('否')!=-1||showValue.indexOf('禁')!=-1){    
       return '<span class="label label-warning">'+showValue+'</span>';
   }else{
       return '<span class="label label-info">'+showValue+'</span>';
   }
   }

 </script>
<%} %>
 